package com.itc.dispatch.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itc.dispatch.domain.AlarmCentre;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itc.dispatch.domain.customDomain.CusAlarmCentre;
import com.itc.dispatch.domain.dto.AlarmCentrePageDto;
import com.itc.dispatch.domain.dto.AlarmTimeDto;
import com.itc.dispatch.domain.vo.AlarmCentreFlightVo;
import com.itc.dispatch.domain.vo.AlarmStatusStatisticsVo;
import com.itc.dispatch.domain.vo.AlarmTypeStatisticsVo;
import com.itc.system.api.domain.SysUser;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
* @author 智少
* @description 针对表【alarm_centre】的数据库操作Mapper
* @createDate 2024-07-29 11:49:11
* @Entity com.itc.dispatch.domain.AlarmCentre
*/

public interface AlarmCentreMapper extends BaseMapper<AlarmCentre> {


    List<AlarmStatusStatisticsVo> alarmStatusList(@Param("alarmGrade") int alarmGrade,
                                                  @Param("dto") AlarmTimeDto dto);

    List<AlarmTypeStatisticsVo> alarmTypeList( @Param("alarmType") String alarmType,
                                               @Param("dto") AlarmTimeDto dto);


    List<AlarmCentre>  selectMinData(@Param("pageDto")   AlarmCentrePageDto pageDto);

    Page<AlarmCentre> getAlarmPage(Page page,@Param("pageDto") AlarmCentrePageDto pageDto);

    List<AlarmCentreFlightVo> getFlightAlarmList(@Param("flightIds") List<String> flightIds);
}




